package com.cyj.dream.security.annotation;

import com.cyj.dream.security.component.SosResourceServerAutoConfiguration;
import com.cyj.dream.security.component.SosResourceServerTokenRelayAutoConfiguration;
import com.cyj.dream.security.component.SosSecurityBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @Description: 资源服务注解 初始化
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.security.annotation
 * @Author: ChenYongJia
 * @CreateTime: 2021-10-19 13:30
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ SosResourceServerAutoConfiguration.class, SosSecurityBeanDefinitionRegistrar.class,
		SosResourceServerTokenRelayAutoConfiguration.class})
public @interface EnableDreamResourceServer {

}
